import request from '@/utils/request'

const prefix = "/api/webInternalCourse"

// 获取主讲课程列表
export function mainList(params) {
	return request({
		url: prefix + '/internalCourseList',
		method: 'get',
		params: params
	})
}
// 详情
export function mainInfo(id) {
	return request({
		url: prefix + '/internalCourse/' + id,
		method: 'get'
	})
}

/**
 * @param {Object} id
 * 获取课纲地址
 */
export function getFileUrl(id) {
	return request({
		url: `${prefix}/getInfoDownloadUrl/${id}`,
		method: 'get',
	})
}